<% if authorized? %>
<h3>Pages Administration</h3>	
	<% if controller.action_name.to_s == "show" %>
		<%= link_to 'Edit', edit_page_path(@page) %> |
		<%= link_to 'Back', pages_path %>
	<% elsif controller.action_name.to_s == "index" %>
		<%= link_to 'New page', new_page_path %>
	<% end %>

<% else %>
	<%= render :partial => "session/new_session"%>
<% end %>

